﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace CyclopsDataObjects
{
    [Serializable]
    [XmlRoot("PlateScan")]
    public class PlateScan
    {
        [XmlElement]
        public long Ticks
        {
            set;
            get;
        }

        [XmlElement("PlateNum", typeof(PlateNum))]
        public PlateNum PlateNum
        {
            set;
            get;
        }

        [XmlElement("GPS", typeof(GPSInfo))]
        public GPSInfo GPS
        {
            set;
            get;
        }

        [XmlArray("Alerts")]
        [XmlArrayItem("Alert", typeof(string))]
        public IEnumerable<string> Alerts
        {
            set;
            get;
        }

        [XmlElement]
        public string SysName
        {
            set;
            get;
        }
    }
}
